package com.ybwh.springboot2.common;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页模型
 *
 * @author fanbeibei
 * @date 2020/10/2 15:43
 */
@Data
public class PageParam implements Serializable {

    @ApiModelProperty(value = "当前页号,从1开始")
    protected int pageNum  = 1;
    @ApiModelProperty(value = "每页的数量")
    protected int pageSize = 10;



    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
